package com.liang.pcc.service;

import com.liang.pcc.mapper.ProcedureMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProcedureService {
    @Autowired
    private ProcedureMapper procedureMapper;

    public void updateDevice1IndependentlyMountable() {
        procedureMapper.callUpdateDevice1Procedure();
    }

    public void insertTopologyData(Long fileId, Long userId) {
        procedureMapper.insertTopologyData(fileId, userId);
    }

    public void updateTopologyData() {
        procedureMapper.updateTopologyData();
    }

    public void syncShortCircuitData(Long userId, Long fileId) {
        procedureMapper.syncShortCircuitData(userId, fileId);
    }

    public void SyncVoltageDeviationCheck(Long userId, Long fileId) {
        procedureMapper.SyncVoltageDeviationCheck(userId, fileId);
    }

    public void SyncAndEvaluateAll(Long userId, Long fileId) {
        procedureMapper.SyncAndEvaluateAll(userId, fileId);
    }

    public void FixIndependentlyMountable(Long fileId) {
        procedureMapper.FixIndependentlyMountable(fileId);
    }

    public void BatchUpdateEquipmentStats(Long fileId) {
        procedureMapper.BatchUpdateEquipmentStats(fileId);
    }
}